<?php
/**
 * 
 * @authors liuqinglin 
 * @email (2961181429@qq.com) 
 * @(https://my.oschina.net/u/2831203)
 * @date    2016-11-21 12:25：00
 * @version $Id$
 */
defined('BASEPATH') OR exit('No direct script access allowed');

class Picture extends Admin_Controller {
	public function __construct()
	{
		parent::__construct();
        $userinfo = $this->session->userinfo;
        if(!isset($userinfo))
        {
            redirect('admin/login'); 
        }
	}
	//列表
	public function index()
	{	
		$this->load->helper("url");
		$this->load->view('header.html');
		$this->load->view('menu.html');

		//图片相册列表
		$this->load->view('picture_list.html');
	}
	//上传图片
	public function picture_upload()
	{	
		$this->load->helper("url");
		$this->load->view('header.html');
		$this->load->view('menu.html');

		//上传图片
		$this->load->view('picture_upload.html');
	}
}
